import axios from "../axios.js";

const classes = {
    // 根据专业获取课程
    getCoursesBySubjectsId(params) {
        return axios({
            url: "/courses/getCoursesBySubjectsId",
            method: "GET",
            params,
        });
    },
    // 给专业新增对应课程
    addOneCourse(data) {
        return axios({
            url: "/courses/addCourses",
            method: "POST",
            data,
        });
    },
};


export default classes;